import request from '@/utils/request';

/**
 * 查询会员签到记录
 * @param {*} params 
 */
export async function getSignedRecord(params) {
  return request('/signedCourse/getSignedRecord', {
    method: 'POST',
    data: { ...params },
  });
}

/**
 * 查询全部的签到记录
 * @param {*} params 
 */
export async function getAllSignedRecord(params) {
  return request('/bookingCourse/getSignedRecord', {
    method: 'POST',
    data: { ...params },
  });
}


/**
 * 查询名称或手机号查询会员
 * @param {*} params 
 */
export async function fetchMembersList(params) {
  return request('/member/selectMember', {
    method: 'POST',
    data: {
      ...params
    },
  });
}


/**
 * 根据用户信息查询场馆List
 * @param {*} params 
 */
export async function fetchShopList(params) {
  return request('/venueInfo/queryVenueInfoListByUserId', {
    method: 'POST',
    requestType:'form',
    data: { ...params },
  });
}

/**
 * 查询会员卡
 * @param {*} params 
 */
export async function fetchCardList(params) {
  return request('/bookingCourse/getMemberCard', {
    method: 'POST',
    data: { ...params },
  });
}

/**
 * 确认签到
 * @param {*} params 
 */
export async function saveMemberSigned(params) {
  console.log('params????',params)
  return request('/bookingCourse/saveMemberSigned', {
    method: 'POST',
    data: { ...params },
  });
}

/**
 * 查询预约课时信息
 * @param {*} params 
 */
export async function getClassInfo(params) {
  return request('/bookingCourse/getClassInfo', {
    method: 'POST',
    data: { ...params },
  });
}

/**
 * 模糊查询课程信息
 * @param {*} params 
 */
export async function getCourseBaseInfo(params) {
  return request('/bookingCourse/getCourseBaseInfo', {
    method: 'POST',
    data: { ...params },
  });
}


